package com.atguigu.seckill.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author ShiJieLin
 * @Date 2022/5/4 15:11
 * @Version 1.0
 */
@Configuration
public class SeckillRabbitConfig {

    /**
     * RabbitMQ发送接收消息的格式
     * @return
     */
    @Bean
    public MessageConverter messageConverter() {
        return new Jackson2JsonMessageConverter();
    }
}
